﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.OA
{
     public interface IEmployees
    {
        public Task<IEnumerable<Employees>> GetAllAsync();

        public Task<IEnumerable<Employees>> GetAsync(int PageIndex, int pageSize, string PersonCode, string Name, string IdCard);

        public Task<int> GetCountAsync(string PersonCode, string Name, string IdCard);

        public Task<bool> UpdateAsync(Employees model);

        public Task<bool> AddAsync(Employees model);

        public Task<bool> DeleteAsync(int[] Ids);

        public Task<bool> DeleteAsync(int Id);
    }
}
